package com.campus.common.message;

import com.campus.common.vo.Teacher;

import java.io.Serializable;

public class TeacherRegisterRequest extends BaseMessage implements Serializable  {
    private String username=new String();
    private String password=new String();
    private Teacher teacher=new Teacher();

    public TeacherRegisterRequest(String username,String password,Teacher teacher) {
        this.username=username;
        this.password=password;
        this.teacher.setTeacherId(teacher.getTeacherId());
        this.teacher.setName(teacher.getName());
        this.teacher.setAge(teacher.getAge());
        this.teacher.setSex(teacher.getSex());
        this.teacher.setDepartment(teacher.getDepartment());
        this.teacher.setContactInfo(teacher.getContactInfo());
    }
    public String getUsername() {return username;}
    public void setUsername(String username) {this.username = username;}
    public String getPassword() {return password;}
    public void setPassword(String password) {this.password = password;}
    public Teacher getTeacher(){return this.teacher;}
    public void setStudent(Teacher teacher){this.teacher = teacher;}

}
